package com.topisv.tms.entity.lpn;

import java.io.Serializable;
import javax.persistence.*;

import com.topisv.tms.costants.StorageConstants;
import com.topisv.tms.entity.IdEntity;

import java.util.Date;

/**
 * The persistent class for the storage_order database table.
 * 
 */
@Entity
@Table(name = "storage_order")
public class StorageOrder extends IdEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @Column(name = "batch_seq")
    private int batchSeq;
    
    @Column(name = "storage_id")
    private int storageId = 0;
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time")
    private Date createTime;
    
    @Column(name = "is_valid")
    private int isValid = StorageConstants.VALID;;
    
    @Column(name = "lpn_no")
    private String lpnNo;
    
    @Column(name = "order_no")
    private String orderNo;
    
    private String remark;
    
    private int status;
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "update_time")
    private Date updateTime = new Date();
    
    @Column(name = "user_id")
    private String userId;
    
    public StorageOrder() {
    }
    
    @Override
    public String toString() {
        return "StorageOrder [batchSeq=" + batchSeq + ", storageId=" + storageId + ", createTime=" + createTime
            + ", isValid=" + isValid + ", lpnNo=" + lpnNo + ", orderNo=" + orderNo + ", remark=" + remark + ", status="
            + status + ", updateTime=" + updateTime + ", userId=" + userId + "]";
    }
    
    public int getBatchSeq() {
        return this.batchSeq;
    }
    
    public void setBatchSeq(int batchSeq) {
        this.batchSeq = batchSeq;
    }
    
    public int getStorageId() {
        return this.storageId;
    }
    
    public void setStorageId(int storageId) {
        this.storageId = storageId;
    }
    
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public int getIsValid() {
        return this.isValid;
    }
    
    public void setIsValid(int isValid) {
        this.isValid = isValid;
    }
    
    public String getLpnNo() {
        return this.lpnNo;
    }
    
    public void setLpnNo(String lpnNo) {
        this.lpnNo = lpnNo;
    }
    
    public String getOrderNo() {
        return this.orderNo;
    }
    
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    
    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    public int getStatus() {
        return this.status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }
    
    public Date getUpdateTime() {
        return this.updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    public String getUserId() {
        return this.userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }
    
}